<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
    .no{
        display: none;
    }
    </style>
</head>

<body>
    <form id="form">
        <div>
            <input type="text" name="name" class="no">
        </div>
        <div>
             <input type="text" name="name2">
        </div>
        <button type="submit">submit</button>
    </form>
    <div id="vname">校验只一个</div>
    <script src="jquery-1.8.3.min.js"></script>
    <script src="jquery.validate.js"></script>
    <script>
    var validator = $("#form").validate({
        ignore:"",
        rules: {
            name: {
                required: true
            },
            name2: {
                required: true
            }
        }

    })
    $("#vname").click(function(){
    	$("[name=name]").valid();
    })

  
    </script>
</body>

</html>
